#pragma once
#include <unordered_map>
#include <string>
#include <mutex>

class BreakpointManager {
public:
    void save_progress(const std::string& filename, size_t offset) {
        std::lock_guard<std::mutex> lock(mtx);
        progress[filename] = offset;
    }
    size_t get_progress(const std::string& filename) {
        std::lock_guard<std::mutex> lock(mtx);
        return progress[filename];
    }
private:
    std::unordered_map<std::string, size_t> progress;
    std::mutex mtx;
}; 